Skip to content

Sync with react.dev @ f5fa1e82 - #201

Open
react-translations-bot wants to merge 131 commits into
mainfrom
sync-f5fa1e82
Open

react-translations-bot wants to merge 131 commits into
mainfrom
sync-f5fa1e82

Conversation

@react-translations-bot

Copy link
Copy Markdown
Collaborator

This PR was automatically generated.

Merge changes from react.dev at f5fa1e8

The following files have conflicts and may need new translations:

Please fix the conflicts by pushing new commits to this pull request, either by editing the files directly on GitHub or by checking out this branch.

DO NOT SQUASH MERGE THIS PULL REQUEST!

Doing so will "erase" the commits from main and cause them to show up as conflicts the next time we merge.

rickhanlonii and others added 30 commits January 26, 2026 14:10
Co-authored-by: artimath <ryanjhunter@gmail.com>
* Add sections to llms.txt

* Also add sitemap footer
* Revamp useOptimistic docs

* Updates from review

* Edit down a bit

* Updates from feedback

* Updates from feedback

* Updates from feedback

* fml, forgot startTransition again

* rm "prop"

* feedback from @stephan-noel

* feedback from @stephan-noel

* update note
Removed an extraneous "a" from the text
* More claude stuff

* more stuff from uee edit

* revert
This commit fixes the wording of __Rendering__ explanation paragraph
in the "components and hooks must be pure" page, according to the suggestion
so that it's easier to understand without any confusion around effects relation.
Prevent worktree contents from being tracked.
* Claude update for useActionState

* Human edits

* Feedback

* Add link to form action docs

* oops

* claude feedback

* Add error handling example.

* Better useOptimistic and pending states.

* Move up "cancelling queued actions" and update form example pending state

* Ooops

* Troubleshooting updates

* Feedback
* added missing prop to useactionstate example

* remove pending from total in first example
* Expand ViewTransition callback props reference documentation

Document the full callback signatures with ViewTransitionInstance
and types arguments, cleanup function return values, instance
properties (group, imagePair, old, new), and per-callback behavior.

* Add usage section for imperative animations with ViewTransition callbacks

Add "Animating imperatively with callbacks" usage section with Sandpack
example showing onEnter/onExit with instance.new.animate() and cleanup
functions. Includes addTransitionType integration example.

* Fiz lint

* Fix heading IDs to use no-space format for dead link checker

The dead link checker regex expects {/*id*/} format without spaces.
Prettier reformatted these to {/* id */} which broke anchor links.

* bump CI

* rm ;

* Human Updates

* Claude Feedback
* Add RSC Sandboxes

* Recover from errors, parse directives in worker with AST

* Fix client edits

* fast refresh

* hardening

* make rsc-sandbox-test dev-only

* add more examples to rsc-sandbox-test

* remove rsc-sandbox-text from sidebar

* Add inline server actions

* fix lint

* pin deps, update skill

* remove [RSC Client Error] from logs

* log error directly in worker

* update worker
see-stack and others added 29 commits November 4, 2026 18:58
* docs: explain useFormStatus with custom form actions

Closes #8682.

Document when `useFormStatus().pending` is set for a `preventDefault()` submit handler that starts a Transition in the same event, and add a runnable example for a custom form action. The example also notes that this pattern does not reset the form automatically.

Validation: `yarn check-all` and `git diff --check` pass locally. The initial draft was prepared with AI assistance and reviewed against the React DOM tests and issue details.

* Polish useFormStatus onSubmit documentation

* Clarify pending status and link form reset guidance

* Shorten pending definition and link onSubmit guidance

* Link form submission and Transition references

* Make form pending-state headings parallel

---------

Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>
Four links in Learn docs were missing the leading slash and would resolve to 404 paths. Every other internal link in the repo uses absolute paths.
Fixes #6933

The Server Components docs page had inconsistent handling of the note variable across 3 code examples. All examples now consistently treat note as an object with .authorId, .id, and .content properties.
Remove accidental repeated words in three reference pages:
- createRoot: 'can can' -> 'can'
- resumeAndPrerenderToNodeStream: 'a a' -> 'a'
- react-performance-tracks: 'the the' -> 'the'

Co-authored-by: eknathdj <eknathdj@users.noreply.github.com>
…#8483)

The ChatRoom.js sandpack in the "Fix a connection switch" challenge
imports useState but only uses useEffect. Remove the unused import
to avoid confusing learners.

Fixes #8231
Removed unused import of useState from React.
- 'an custom' -> 'a custom' in components/index.md (consonant sound)
- 'a object' -> 'an object' in taintUniqueValue.md (vowel sound)
…(#8667)

* Explain that the useState setter triggers a re-render in Quick Start

* Explain re-render behavior before naming it

---------

Co-authored-by: Dextheking1 <Dextheking1@users.noreply.github.com>
Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>
* Fix act() dispatch example using button before it is defined

The event example called button.dispatchEvent before const button was declared, which would throw at runtime. Also drop it.only from the docs snippet.

* Highlight the full act event-dispatch block

---------

Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>
…nsition (#8642)

* Remove redundant async in useTransition documentation

* Fix typo in useActionState hook documentation
* Clarify ref callback cleanup vs null behavior

* docs: incorporate review feedback on ref callback cleanup
Co-authored-by: sunmozong <sunmozong@kuaishou.com>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Fixes reactjs/react.dev#8375

The tutorial incorrectly used 'argument' when referring to the function
parameter  in the handleClick function declaration. In JavaScript:
- Parameter is the variable in the function declaration
- Argument is the actual value passed when calling the function

This change improves accuracy and helps learners understand the
distinction between these two important programming concepts.
* Update lifecycle-of-reactive-effects.md

* Remove useEffect from solution as well

---------

Co-authored-by: Jaem <91131509+DarkChocoJaem@users.noreply.github.com>

This branch had an error being deployed

1 failed deployment
Preview — d1f9fbc7 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.